How to split an array into interval chunks

welcome to shbcf.ru